package com.sentinel.nacos.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/****************************************************
 *
 * @author lbf
 * @date 2025/6/30 12:11
 ****************************************************/
@RestController
public class TestController {

    /**
     *
     * 指定流控资源
     */
    @SentinelResource(value = "test")
    @GetMapping("/test")
    public String test(){
        return "test";
    }
}
